﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="NewsList.aspx.cs" Inherits="xyw.NewsList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        
    <div class="News">
        <div class="current"><i class="icon-home"></i> 当前位置：<a href="index.aspx">首页</a> - 新闻列表 </div>
        <asp:Repeater ID="Repeater1" runat="server">
            <ItemTemplate>
                <div class="listItem">
                    <div class="left">
                        <h2><%# Eval("title") %></h2>
                        <span title='来源：<%# Eval("department") %>  作者：<%# Eval("author") %> [<%# Eval("pubDate","{0:yyyy-MM-dd}") %>]'>来源：<%# Eval("department") %>  作者：<%# Eval("author") %> [<%# Eval("pubDate","{0:yyyy-MM-dd}") %>]</span>
                        <p><a class="btn" href="NewsPage.aspx?id=<%# Eval("id") %>"><i class="icon-hand-right"></i> 阅读(<%# Eval("totalClick") %>)</a></p>
                    </div>
                    <div class="right">
                        <p><%# Eval("outline") %></p>
                    </div>
                    <div class="clear"></div>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <div class="pagination"> 
                  <asp:Literal ID="RecordCount" runat="server"></asp:Literal>条记录
        共有<asp:Literal ID="PageCount" runat="server"></asp:Literal>页
        当前第<asp:Literal ID="Pageindex" runat="server"></asp:Literal>页
            <asp:HyperLink ID="FirstPage" runat="server" Text="首页"></asp:HyperLink>
            <asp:HyperLink ID="PrevPage" runat="server" Text="上一页"></asp:HyperLink>
            <asp:HyperLink ID="NextPage" runat="server" Text="下一页"></asp:HyperLink>
            <asp:HyperLink ID="LastPaeg" runat="server" Text="尾页"></asp:HyperLink>
        跳转到<asp:Literal ID="Literal1" runat="server"></asp:Literal>页 </div>
    </div>
    
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolderScript" runat="server">

</asp:Content>
